package com.order.dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBConnection {
	static String driver="org.gjt.mm.mysql.Driver";
	 static String url="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8";
	 static	String user="root";	
	// static String password="root";
	 static String password="";
	 public static Connection getConnect(){
		 Connection con=null;
		 try{
				Class.forName(driver);
			 con=DriverManager.getConnection(url,user,password);
		 }catch(Exception e){
			 e.printStackTrace();
		 }
		 return con;
	 }
	 
}
